Skip to content

Scaffold local OpenSpec change workspaces for branch-start flows#128

Merged
NagyVikt merged 2 commits intomainfrom
agent/codex/admin-kozpontihusbolt-hu-gx-openspec-update-check
Apr 16, 2026
Merged

Scaffold local OpenSpec change workspaces for branch-start flows#128
NagyVikt merged 2 commits intomainfrom
agent/codex/admin-kozpontihusbolt-hu-gx-openspec-update-check

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

NagyVikt added 2 commits April 16, 2026 13:17
Typing 'gx' now performs a lightweight OpenSpec package freshness check (interactive by default), then offers an explicit y/n prompt to run both the npm upgrade and openspec tool refresh command.

This keeps the existing guardex self-update path intact while extending the same explicit-consent behavior to OpenSpec updates. The check is skipped in non-interactive shells unless explicitly forced via env for automation/tests.

Constraint: Keep startup flow non-destructive and explicit-consent only

Rejected: Auto-running openspec upgrades without prompt | too side-effectful for default status invocation

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Keep OpenSpec prompt strict [y/n]; do not reintroduce implicit Enter acceptance

Tested: npm test --silent; node --check bin/multiagent-safety.js; git diff --check

Not-tested: Interactive terminal prompt UX with real user input
Add repository-local Usage: scripts/openspec/init-change-workspace.sh <change-slug> [capability-slug]
Example: scripts/openspec/init-change-workspace.sh add-dashboard-live-usage runtime-migration so the branch-start OpenSpec bootstrap can initialize change artifacts directly in active worktrees without relying on template-only assets.

Constraint: Existing branch-start and codex-agent bootstrap flow already expects local helper scripts in sandbox worktrees
Rejected: Keep change-workspace scaffold only under templates/ | runtime worktrees can miss helper parity when local script is absent
Confidence: high
Scope-risk: narrow
Directive: Keep local openspec helper scripts in sync with template counterparts to avoid bootstrap drift
Tested: node --test test/install.test.js
Not-tested: Full test matrix beyond install suite
@NagyVikt NagyVikt merged commit 1416c5c into main Apr 16, 2026
@NagyVikt NagyVikt deleted the agent/codex/admin-kozpontihusbolt-hu-gx-openspec-update-check branch April 16, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant